package com.hskn.hss.module.depart.mapper;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hskn.hss.module.depart.entity.SysDepart;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 组织机构表 Mapper 接口
 * </p>
 *
 * @author hskn
 * @since 2021-04-30
 */
public interface SysDepartMapper extends BaseMapper<SysDepart> {
    public Page<SysDepart> listDept(Page<SysDepart> page, Map map);

    public List getdDeptIdByParentId(@Param("parentid") String parentid);

    public List getTreeList();

    public List getAppUserList(); //APP获取用户列表

    public List getAppUserListByDept(Map map); //APP获取用户列表

    public List getAppUserListBySearch(Map map); //APP获取用户列表

    List<Map<String, Object>> collectList(JSONObject params);

    Long collectListCount(JSONObject params);

    SysDepart getDeptIdById(@Param("deptId") String deptId);

    Page<SysDepart> listDeptCascade(Page<SysDepart> page, Map map);

}
